package com.ruoyi.system.api.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 消息推送日志对象 st_jpush_log
 * 
 * @author shihx
 * @date 2020-04-01
 */
public class JpushLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用于消息推送 */
    @Excel(name = "用于消息推送")
    private String registrationId;

    /** 服务单主键ID */
    @Excel(name = "服务单主键ID")
    private Long noticeId;

    /** 服务号 */
    @Excel(name = "服务号")
    private String serviceNo;

    /** 计划详情表主键ID */
    @Excel(name = "计划详情表主键ID")
    private Long planId;

    /** 员工ID */
    @Excel(name = "员工ID")
    private String enginnerId;

    /** 1单人推送 2全部推送 */
    @Excel(name = "1单人推送 2全部推送")
    private String type;

    /** 推送的业务类型 */
    @Excel(name = "推送的业务类型")
    private String state;

    /** 推送标题 */
    @Excel(name = "推送标题")
    private String title;

    /** 推送内容 */
    @Excel(name = "推送内容")
    private String content;

    /** 推送附带参数 */
    @Excel(name = "推送附带参数")
    private String extra;

    /** 推送时间 */
    @Excel(name = "推送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pushTime;

    /** 推送结果 成功失败 */
    @Excel(name = "推送结果 成功失败")
    private String statuscode;

    /** 推送成功返回信息 */
    @Excel(name = "推送成功返回信息")
    private String sendno;

    /** 推送成功返回信息 */
    @Excel(name = "推送成功返回信息")
    private String msgId;

    /** 异常信息 */
    @Excel(name = "异常信息")
    private String message;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRegistrationId(String registrationId) 
    {
        this.registrationId = registrationId;
    }

    public String getRegistrationId() 
    {
        return registrationId;
    }
    public void setNoticeId(Long noticeId) 
    {
        this.noticeId = noticeId;
    }

    public Long getNoticeId() 
    {
        return noticeId;
    }
    public void setServiceNo(String serviceNo) 
    {
        this.serviceNo = serviceNo;
    }

    public String getServiceNo() 
    {
        return serviceNo;
    }
    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setEnginnerId(String enginnerId) 
    {
        this.enginnerId = enginnerId;
    }

    public String getEnginnerId() 
    {
        return enginnerId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setExtra(String extra) 
    {
        this.extra = extra;
    }

    public String getExtra() 
    {
        return extra;
    }
    public void setPushTime(Date pushTime) 
    {
        this.pushTime = pushTime;
    }

    public Date getPushTime() 
    {
        return pushTime;
    }
    public void setStatuscode(String statuscode) 
    {
        this.statuscode = statuscode;
    }

    public String getStatuscode() 
    {
        return statuscode;
    }
    public void setSendno(String sendno) 
    {
        this.sendno = sendno;
    }

    public String getSendno() 
    {
        return sendno;
    }
    public void setMsgId(String msgId) 
    {
        this.msgId = msgId;
    }

    public String getMsgId() 
    {
        return msgId;
    }
    public void setMessage(String message) 
    {
        this.message = message;
    }

    public String getMessage() 
    {
        return message;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("registrationId", getRegistrationId())
            .append("noticeId", getNoticeId())
            .append("serviceNo", getServiceNo())
            .append("planId", getPlanId())
            .append("enginnerId", getEnginnerId())
            .append("type", getType())
            .append("state", getState())
            .append("title", getTitle())
            .append("content", getContent())
            .append("extra", getExtra())
            .append("pushTime", getPushTime())
            .append("statuscode", getStatuscode())
            .append("sendno", getSendno())
            .append("msgId", getMsgId())
            .append("message", getMessage())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
